<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui">
<h:head>
	<title>Login</title>
</h:head>
<h:body>
	<div id="content">
		<p:panel header="New">
			<h:form id="form">
				<h:panelGrid columns="3">
					<h:outputLabel for="firstname" value="Name: " id="lblFirstName" />

					<p:inputText id="firstname" onclick="ciao()"
						value="#{UtenteBean.utente.nome}" label="Firstname">
						<f:validateLength minimum="5" />
						<p:ajax event="blur" update="growl,msg" process="@this" />
					</p:inputText>
					<p:message id="msg" for="firstname" display="icon" />
				</h:panelGrid>

				<p:growl id="growl" life="5000" showDetail="true" sticky="true" />

				<p:panel header="Growl">
					<h:panelGrid columns="2">
						<h:outputText value="Your Name: *" />
						<p:inputText value="#{growlBean.text}" required="true"
							label="Name" />
					</h:panelGrid>

					<p:commandButton value="Save" actionListener="#{growlBean.save}" update="growl"
					 />
				</p:panel>

			</h:form>

		</p:panel>
	</div>
</h:body>
</html>
